package com.surveypark.service;

import java.util.List;

import com.surveypark.domain.Answer;
import com.surveypark.domain.Page;
import com.surveypark.domain.Question;
import com.surveypark.domain.Survey;
import com.surveypark.domain.User;

public interface SurveyService extends BaseService<Survey>{

	public Survey newSurvey(User u);
	public List<Survey> findMySurveys(User u);
	public Survey getSurveyWithChildren(Integer sid);
	public Survey getSurvey(Integer sid);
	public void updateSurvey(Survey model);
	public void saveOrUpdatePage(Page model);
	public Page getPage(Integer pid);
	public void saveOrUpdateQuestrion(Question model);
	public Question getQuestion(Integer qid);
	public void deleteQuestion(Integer qid);
	public void deletePage(Integer pid);
	public void deleteSurvey(Integer sid);
	public void clearAnswers(Integer sid);
	public boolean toggleStatus(Integer sid);
	public void updateLogoPhotoPath(Integer sid, String string);
	public List<Survey> findSurveysWidthPage(User user);
	public void moveOrCopyPage(Integer srcPid, Integer targPid, int pos);
	public List<Survey> findAllAvailableSurvey();
	public Page getFirstPage(Integer sid);
	public Page getPrePage(Integer currPid);
	public Page getNextPage(Integer currPid);
	public void saveAnswers(List<Answer> processAnswers);
	public List<Question> getQuestions(Integer sid);
	public List<Answer> findAnswers(Integer sid);
}
